package com.qd.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_login_user_org")
public class LoginUserOrg extends Model<LoginUserOrg> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 登录方式
     */
    @TableField("remote")
    private String remote;
    /**
     * 机构ID
     */
    @TableField("org_id")
    private String orgId;
    /**
     * 人员ID
     */
    @TableField("person_id")
    private String personId;

    public void freeData() {
        this.id = null;
        this.remote = null;
        this.orgId = null;
        this.personId = null;
    }

}
